package com.gcit.seniorWish.web.modular.enroll.service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.gcit.seniorWish.core.node.SelectNode;
import com.gcit.seniorWish.web.common.persistence.model.EnrollSchool;
import com.baomidou.mybatisplus.service.IService;
import org.antlr.v4.runtime.misc.Nullable;
import org.springframework.transaction.annotation.Transactional;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 报考学校信息表（提前录取（师范）、提前批次（普高）、指标生录取、第一批次、第二批次、第三批次、第四批次、第五批次） 服务类
 * </p>
 *
 * @author gaozhichang
 * @since 2018-03-16
 */
public interface IEnrollSchoolService extends IService<EnrollSchool> {

	List<EnrollSchool> listEnrollSchool(Page page, EntityWrapper<EnrollSchool> ew);

	@Transactional
	void addEnrollSchool(EnrollSchool enrollSchool);

	@Transactional
	void updateEnrollSchool(EnrollSchool enrollSchool);

	List<SelectNode> listBatchTypeForSelect2(@Nullable String enrollSchoolId);

	List<Map<String, Object>> listEnrollSchoolForSelect2(Page<Map<String, Object>> page, Integer batchType, String enrollSchoolId,String enrollSchoolName);
	
	String importEnrollSchool(InputStream inputStream);
	
	String importMajor(InputStream inputStream);

	@Transactional
	void deleteEnrollSchool(String enrollSchoolId);
}
